package commands.creator;

import utils.GenericSyntaxParser;


GenericSyntaxParser parser = new GenericSyntaxParser()
parser.parse(argstr, "->")

def objToForce = parser.subjectObject.findObjectInContainer(registry)
def objCommand = parser.prepositionObject.objectName.split(" ")
def argStr = null
if(objCommand.size() > 1){
	argStr = objCommand[1..-1].join(" ")
}
objToForce."${objCommand[0]}"(argStr)
